<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <title>#{pageName}</title>
        <style>  
            body {
                font-size: 10px;
            }  
        </style>  
        <script type="text/javascript">

            $(document).ready(function(){
                $('#box').fadeIn(500);

            });
        </script>
    </h:head>
    <h:body>
        
        <script type="text/javascript" src="#{request.contextPath}/resources/javascript/jquery.js"></script>
        <script type="text/javascript" src="#{request.contextPath}/resources/javascript//jquery.imgr.js"></script>
        <h:form id="formMenu">
           
            <table width="100%">
                <tr>
                    <td width="100%">
                        <p:menubar>
                            <p:menuitem>
                                <p:commandLink>
                                    <h:graphicImage value="/resources/images/template.png"/>
                                </p:commandLink>
                            </p:menuitem>
                            <p:menuitem>
                                <p:commandLink>
                                    <h:graphicImage value="/resources/images/template.png"/>
                                </p:commandLink>
                            </p:menuitem>
                        </p:menubar>
                    </td>
                </tr>
                <tr>
                    <td>
                        Cabecera
                    </td>
                </tr>
                <tr>
                    <td width="100%">
                        <p:menubar>
                            <p:submenu label="Administration">
                                <p:menuitem value="Users"></p:menuitem>
                            </p:submenu>
                            <p:submenu label="Core">
                                <p:submenu label="Generation">
                                    <p:menuitem value="Manual"/>
                                    <p:menuitem value="Quick"/>
                                </p:submenu>
                                <p:submenu label="Projects">
                                    <p:menuitem >
                                        <h:commandButton value="New" action="#{projectBackingBean.goCreateProject()}" />
                                    </p:menuitem>
                                </p:submenu>
                            </p:submenu>
                            <p:submenu label="Configuration">
                            </p:submenu>
                            <p:submenu label="Account">
                                <p:menuitem value="Login" onclick="login.show();">
                                </p:menuitem>
                                <p:submenu label="Assigned Projects">
                                    <p:menuitem style="width: 400px">
                                        <ui:include src="/WEB-INF/facelets/project/list.xhtml"/>
                                    </p:menuitem>
                                </p:submenu>
                                <p:menuitem value="Preferences"/>
                            </p:submenu>
                        </p:menubar>
                    </td>
                </tr>
            </table>
            <ui:include src="/WEB-INF/facelets/security/form.xhtml"/>
        </h:form>
        <br/>
        <h:form>
            
        </h:form>
        <div id="box" style="display:none;">
            <ui:insert name="body"/>
        </div>
        <br/>
        <br/>
    </h:body>
</html>